Feature: Crear un post,agregarle una url, publicarlo, validar la url, eliminarlo validar que la pagina ya no existe
Scenarios
|
Chart |
Status Progress |
||||
|---|---|---|---|---|---|
|
1
|
|
||||
| Total duration: | |||||
| 2m 41.334s |
Scenario: Como autor creo un post, le agrego url, lo elimino y luego valido que no existe
Before
0m 2.330s
Given
I go to page "<HOST>" "ghost/#/signin"
0m 9.153s
And
I sign in with "<USERNAME>" and "<PASSWORD>"
0m 3.298s
When
I click new post
0m 3.326s
And
I set post attributes title "$number_1" and body "$string_1"
0m 3.207s
And
I press settings button
0m 2.799s
And
I set url field to "$name_2"
0m 2.687s
And
I close settings menu
0m 2.644s
And
I publish the post
0m 2.925s
And
I go to page "<HOST>" "$$name_2"
0m 8.567s
Then
I check page full title with "$$number_1"
0m 7.698s
And
I go to page "<HOST>" "ghost/#/posts?type=published"
0m 8.252s
And
I Click a post with title "$$number_1"
0m 4.644s
And
I press settings button
0m 2.770s
And
I click delete from settings
0m 7.791s
And
I delete post
0m 7.682s
And
I go to page "<HOST>" "ghost/#/posts?type=published"
0m 7.921s
Then
I validate the post with "$number_1" not exists
0m 2.903s
And
I go to page "<HOST>" "$$name_2"
0m 7.995s
Then
I can not get page
0m 2.719s
After
0m 0.023s
Screenshots
Before
NO IMAGE AVAILABLE
Given
I go to page "<HOST>" "ghost/#/signin"
And
I sign in with "<USERNAME>" and "<PASSWORD>"
When
I click new post
And
I set post attributes title "$number_1" and body "$string_1"
And
I press settings button
And
I set url field to "$name_2"
And
I close settings menu
And
I publish the post
And
I go to page "<HOST>" "$$name_2"
Then
I check page full title with "$$number_1"
And
I go to page "<HOST>" "ghost/#/posts?type=published"
And
I Click a post with title "$$number_1"
And
I press settings button
And
I click delete from settings
And
I delete post
And
I go to page "<HOST>" "ghost/#/posts?type=published"
Then
I validate the post with "$number_1" not exists
And
I go to page "<HOST>" "$$name_2"
Then
I can not get page
After
NO IMAGE AVAILABLE